//********************************************************************************
//	Keyboard.js
//		This file is responsible for handling the keyboard input provided by the 
//		user.
//
//	Author: Alex Hanson
//	Revisions:
//		2013-08-20 AJH Created
//********************************************************************************

//Constructor
function Keyboard(uni) {
	//Two way tie to Universe.
	this.Universe=uni;
	uni.Keyboard=this;
}

Keyboard.prototype.listener = function(event) {
	//Get Key Press
	var event=window.event || event;
	var key=String.fromCharCode(event.charCode);
	
	//Check Menu Open
	
	
	//Perform Key Action
	switch (key) {
		case "w": //NW
		case "e": //NE
		case "a": //W
		case "d": //E
		case "z": //SW
		case "x": //SE
		case "s": //Self
		case "q": //Up
		case "c": //Down
		default:
			alert("Key not Mapped!!! ["+key+"]");
	}
}